package com.lzy.principles.demo2.before;

/**
 * @ClassName: Square
 * @Description: 正方形
 * @Author: LiuZy
 * @Date: 2022/4/4 10:17
 * @Version: 1.0
 */
public class Square extends Rectangle{

    @Override
    public void setWidth(double width){
        super.setWidth(width);
        super.setLength(width);
    }

    @Override
    public void setLength(double lenth){
        super.setWidth(lenth);
        super.setLength(lenth);
    }
}